package com.chris.libs.base.x.mvpp.mvpp;

import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModel;

import androidx.annotation.NonNull;

/**
 * @author Chris chan
 * Create on: 2025/1/23 13:07
 * Use for:
 * Explain:
 */
public abstract class AbsPresenter<V extends BaseView, M extends ViewModel> implements BaseViewModelPresenter<V, M> {
    protected V view;
    protected M model;

    protected AppCompatActivity activity;

    @Override
    public void bindView(@NonNull V view, M model) {
        this.view = view;
        this.model = model;
    }

    public AppCompatActivity getActivity() {
        return activity;
    }

    public void setActivity(AppCompatActivity activity) {
        this.activity = activity;
    }
}
